import React from 'react'
import store from '../../redux/store'
export default function Index() {

  const getTotal = () => {
    return store.getState().list.filter(item => item.done).length
  }

  return (
    <div className='total'> 已完成({getTotal()})/全部({store.getState().list.length})</div>
  )
}
